package com.yoshino.factory.factory_method.pizzastore.pizza;

import lombok.extern.slf4j.Slf4j;

/**
 * @author yoshino
 * 将 Pizza 类作为抽象的
 **/
@Slf4j
public abstract class Pizza {
    
    protected String name;

    /**
     * 原材料
     */
    public abstract void prepare();

    public void bake() {
        log.info(name + " baking; ");
    }

    public void cut() {
        log.info(name + " cutting;");
    }

    public void box() {
        log.info(name + " boxing; ");
    }

    public void setName(String name) {
        this.name = name;
    }
}
            
